home *** CD-ROM | disk | FTP | other *** search
- * Writes the single block of data to the medium
- * multiple times.
-
- @THREAD WRTSAME.LOG
- @NEWALIAS SADD SCSIADD.GRA
- @IMPORT SCSICOM.SCR
- SADD DD_OPEN
-
- * 0=Async mode, 1=Sync mode
- SADD SET MODE=1
-
- * Command completion timeout (Secs)
- * 0=the assigned value is the default set by the driver,
- * -1=the assigned value is infinite.
- SADD SET TIMEOUT=0
-
- * Name for paramblock
- SADD SET LABEL = "READ CAPACITY"
-
- SADD READCAPACITY
-
- * 1 : replaces the first four bytes of the data to be written to
- * the current logical block with the logical block address of
- * the block currently being written.
- SADD SET LOGICAL_BLOCK_DATA = 0
-
- * 1 : replaces the first eight bytes of the data to be written to
- * the current physical sector with the physical address of
- * the sector currently being written.
- SADD SET PHYSICAL_BLOCK_DATA = 1
-
- * 32bit starting logical block addr
- SADD SET LOGICAL_BLOCK_ADDR = 60
-
- *STARTING LOGICAL BLOCK ADDR
- *SADD RESPONSE $PROMPT="ENTER STARTING LOGICAL BLOCK ADDR : " $RESPONSE=LOGICAL_BLOCK_ADDR $PAUSE=15
-
- * 0 = indicates that the logical block address field
- * specifies the first logical block of the range of
- * logical blocks to be operated on by this command.
- * 1 = indicates that the logical block address field is
- * a two's complement displacement. This -ve or +ve
- * displacement shall be added to the logical block
- * address last accessed on the logical unit to form the
- * logical block address for this command.
- SADD SET ADDR_MODE=0
-
- * Reserved - set to zero
- SADD SET CDB_BYTE6=0
-
- * No. of contiguous logical blocks to be read
- SADD SET NUM_BLOCKS = 1
-
- *NO. OF CONTIGOUS LOGICAL BLOCKS TO BE READ
- *SADD RESPONSE $PROMPT="ENTER # OF LOGICAL BLOCKS : " $RESPONSE=NUM_BLOCKS $PAUSE=15
-
- * 1(Cache if possible), 0(Need not cache it)
- SADD SET CACHE_IF_POSSIBLE = 1
-
- * 1(Force access form media), 0(May access from cache)
- SADD SET FORCE_MEDIA_ACCESS = 0
-
- SADD SET SCATGAT = ALPHA
- SADD SET LABEL = "READ10"
- SADD READ10
-
- * 32bit starting logical block addr
- SADD SET LOGICAL_BLOCK_ADDR = 65
-
- * Name for paramblock
- SADD SET LABEL = "WRITE SAME"
-
- SADD WRITE_SAME
-
- SADD DD_CLOSE
-